import axiosUtils from '@api/env/axiosEnv'

let customAxios = axiosUtils._initAxios()

export function getPointDetailInfo (param) {
  return customAxios({
    url: '/main/board/getFreightDetail',
    method: 'post',
    data: param
  })
}

export function getPointsInfo (param) {
  return customAxios({
    url: '/board/getFreightList',
    method: 'post',
    data: param
  })
}

export function getFreightTrainCountList (param) {
  return customAxios({
    url: '/main/board/getFreightTrainCountList',
    method: 'post',
    data: param
  })
}

export function getFreightTrainWeightList (param) {
  return customAxios({
    url: '/main/board/getFreightTrainWeightList',
    method: 'post',
    data: param
  })
}

export function getFreightTrainCountTrend (param) {
  return customAxios({
    url: '/board/getFreightTrainCountTrend',
    method: 'post',
    data: param
  })
}

export function getFreightTrainWeightTrend (param) {
  return customAxios({
    url: '/main/board/getFreightTrainWeightTrend',
    method: 'post',
    data: param
  })
}

export function getStationTrainCountList (param) {
  return customAxios({
    url: '/main/board/getStationTrainCountList',
    method: 'post',
    data: param
  })
}

export function getStationTrainWeightList (param) {
  return customAxios({
    url: '/main/board/getStationTrainWeightList',
    method: 'post',
    data: param
  })
}

export function getStationTrainCountTrend (param) {
  return customAxios({
    url: '/main/board/getStationTrainCountTrend',
    method: 'post',
    data: param
  })
}

export function getStationTrainWeightTrend (param) {
  return customAxios({
    url: '/main/board/getStationTrainWeightTrend',
    method: 'post',
    data: param
  })
}
